package com.plian.system.entity.pf;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.plian.Tools.DateUtil;
import com.plian.system.mybatis.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author: Take-off
 * @Description: TODO 经营业绩考核指标基础类
 * @Date: 2023/1/3 9:00 AM
 * @Version: 1.0
 **/
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "BaseIndicators 对象", description = "经营业绩考核指标基础类")
public class BaseIndicators extends BaseEntity {

    @ApiModelProperty(value = "单据编码")
    private String code;

    @ApiModelProperty(value = "填报年度")
    private String fillingYear;

    @ApiModelProperty(value = "填报单位")
    private String fillingUnitId;

    @ApiModelProperty(value = "审批人")
    private String approvedUser;

    @DateTimeFormat(pattern = DateUtil.PATTERN_DATETIME)
    @JsonFormat(pattern = DateUtil.PATTERN_DATETIME)
    @ApiModelProperty(value = "审批时间")
    private Date approvedTime;

    @ApiModelProperty(value = "审批意见")
    private String approvedOpinion;

    @ApiModelProperty(value = "单据类型")
    private String formType;

    @ApiModelProperty(value = "填报时间")
    @DateTimeFormat(pattern = DateUtil.PATTERN_DATE)
    @JsonFormat(pattern = DateUtil.PATTERN_DATE)
    private Date fillingTime;

    @ApiModelProperty(value = "目标值（亿元）")
    private BigDecimal targetValue;

    @ApiModelProperty(value = "备注说明")
    private String remarks;

    @ApiModelProperty(value = "是否有重大工程考核项目:0-否，1-是")
    private Integer isMajorProject;




}
